package com.ht.utility;

import javax.servlet.http.HttpServletRequest;

public class WebUtil {

	public static String getURI(HttpServletRequest request) {
		String uri = request.getRequestURI();
		return uri.substring(uri.lastIndexOf("/") + 1);
	}

	public static String getWebRootPath(HttpServletRequest request) {
		return request.getServletContext().getRealPath("/");
	}

}
